package com.zengxiao.mvvmd.login.controller;

import com.zengxiao.mvvmd.login.dto.LoginReqVo;
import com.zengxiao.mvvmd.login.dto.ResultVo;

@RestController
@RequestMapping("/common")
public class LoginController {

    @RequestMapping(value = "login", method = RequestMethod.POST)
    public ResultVo<Boolean> login(HttpServletRequest request, HttpServletResponse response,
            @Valid @Validate({ ValidateEnum.NotBlank }) @RequestBody LoginReqVo loginReqVo) {
        return null;
    }

    @RequestMapping(value = "logout", method = RequestMethod.GET)
    public ResultVo<Boolean> logout(HttpServletRequest request) {
        return true;
    }
}
